Expressions may generally be used in place of numeric and Boolean values. Numeric action parameters, action target IDs, and action target indexes may all use expressions. They are also used in conjunction with the Case and While statement actions as conditional Boolean expressions.
Expressions may contain just a single operand, or may be complex, containing any number of operators and operands.
For details on the grammar of expressions, see Appendix .
Expressions are evaluated internally as single-precision, floating-point numbers. This means that all operands with numeric data types that are used in an expression are cast to a single precision floating point. For a few of the operand types, such as the sprite ID operands, it is possible to have a round-off error problem. This can be avoided by using sprite IDs that can be expressed using single- precision, floating-point numbers.
| Previous | Chapter Contents | Chapter Top | Next |